﻿using System;
using System.Data;

namespace ContractManagementSystem
{
    public partial class ReportContractor : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadReportContractor();
        }
        /// <summary>
        /// Function LoadReportContractor
        /// </summary>
        private void LoadReportContractor()
        {
            var crystalReportContractor = new CrystalReportContractor();
            crystalReportContractor.SetDataSource((DataTable)Session["ReportContractor"]);
            ContractorCrystalReportViewer.ReportSource = crystalReportContractor;
            ContractorCrystalReportViewer.DisplayGroupTree = false;
            ContractorCrystalReportViewer.RefreshReport();
        }
    }
}
